﻿<navigation:Page x:Class="SL4_NAV_ProjectiCON.Views.Dashboard" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:controlstoolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
           xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
           xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl" 
           xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
           d:DesignWidth="1149" d:DesignHeight="985"
           Title="Dashboard Page">
           
    <Grid x:Name="LayoutRoot" Width="1088">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="51*" />
            <ColumnDefinition Width="1041*" />
        </Grid.ColumnDefinitions>
        <Grid Margin="-155,12,306,0" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="179*" />
                <ColumnDefinition Width="20*" />
                <ColumnDefinition Width="738*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="121*" />
                <RowDefinition Height="851*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <controlstoolkit:BusyIndicator x:Name="BusyWindow" Content="" BusyContent="Please Wait While Loading Data..." Margin="51,47,36,117" Grid.ColumnSpan="3" />
            <m:Map x:Name="MyMap"  Mode="Road" RenderTransformOrigin="0.42,0.557" LogoVisibility="Collapsed" Loaded="MyMap_Loaded" Margin="138,18,276,5" Grid.ColumnSpan="3" Grid.Row="1">
                <m:Map.CredentialsProvider>
                    <m:ApplicationIdCredentialsProvider 
                    ApplicationId="{StaticResource MyCredentials}" />
                </m:Map.CredentialsProvider>
                <m:MapLayer x:Name="PushPinLayer">
                    <Canvas x:Name="ContentPopup" Visibility="Collapsed" Opacity="0.85" MouseEnter="ContentPopup_MouseEnter" MouseLeave="ContentPopup_MouseLeave">
                        <Rectangle x:Name="ContentPopupRectangle" Fill="White" Canvas.Left="0" Canvas.Top="0" Height="100" Width="300" RadiusX="20" RadiusY="20" />
                        <StackPanel Canvas.Left="10" Canvas.Top="10">
                            <TextBlock x:Name="ContentPopupText" FontSize="12" FontWeight="Bold" TextWrapping="Wrap" Width="250"></TextBlock>
                        </StackPanel>
                    </Canvas>
            </m:MapLayer>
               
            </m:Map>
         
            <Button Content="Find" Height="26" HorizontalAlignment="Left" Margin="376,12,0,0" Name="Find" VerticalAlignment="Top" Width="42" Grid.Column="2" Click="Find_Click" />
            <TextBox Height="29" HorizontalAlignment="Left" Margin="39,12,0,0" Name="txtaddress" VerticalAlignment="Top" Width="328" Background="White" Grid.Column="2">
                <TextBox.BorderBrush>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="#FFA3AEB9" Offset="0" />
                        <GradientStop Color="#FF8399A9" Offset="0.375" />
                        <GradientStop Color="#FF718597" Offset="0.375" />
                        <GradientStop Color="#FF40719D" Offset="1" />
                    </LinearGradientBrush>
                </TextBox.BorderBrush>
            </TextBox>
            <TextBlock Grid.ColumnSpan="3" Height="18" HorizontalAlignment="Left" Name="txtBAdress" Text="Address :" VerticalAlignment="Top" Width="63" FontWeight="Bold" TextAlignment="Right" Margin="169,16,0,0" />
            <Button Content="NYK" Height="24" HorizontalAlignment="Left" Margin="44,44,0,0" Name="btnNyk" VerticalAlignment="Top" Width="38" Grid.Column="2" Click="btnNYK_Click" />
            <Button Content="LON" Height="23" HorizontalAlignment="Right" Margin="0,44,612,0" Name="btnLon" VerticalAlignment="Top" Width="38" Grid.Column="2" Click="btnLon_Click" />
            
            <Button Content="HAM" Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="132,45,0,0" Name="btnHam" VerticalAlignment="Top" Width="47" Click="btnHam_Click" />
            <Button Content="MAA" Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="185,45,0,0" Name="btnMaa" VerticalAlignment="Top" Width="48" Click="btnMaa_Click" />
            <Button Content="DXB" Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="239,44,0,0" Name="btnDxb" VerticalAlignment="Top" Width="46" Click="btnDxb_Click" />
            <Button Content="SIN" Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="291,44,0,0" Name="btnSin" VerticalAlignment="Top" Width="46" Click="btnSin_Click" />
            <Button Content="HKG" Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="343,44,0,0" Name="btnHkg" VerticalAlignment="Top" Width="52" Click="btnHkg_Click" />
            
        </Grid>
        <charting:Chart x:Name="myChart" Margin="461,12,102,-13" Grid.Column="1"></charting:Chart>
        <TextBlock Grid.Column="1" Height="26" HorizontalAlignment="Left" Margin="480,27,0,0" Name="txtbGraph" Text="View Units in Graph" VerticalAlignment="Top" Width="272" FontWeight="Bold" />
        <!--<data:DataGrid AutoGenerateColumns="False" Margin="537,604,38,8" Name="dataGrid1" Grid.Column="1">
            <data:DataGrid.Columns>
                <data:DataGridTextColumn Header="Container No." Width="SizeToHeader" Binding="{Binding CustomerName}" />
                <data:DataGridTextColumn Header="Count" Width="SizeToHeader" Binding="{Binding CustomerId}" />
                <data:DataGridTextColumn Header="Status" Width="SizeToHeader" Binding="{Binding CustomerAddress}" />
            </data:DataGrid.Columns>
        </data:DataGrid>-->
    </Grid>
</navigation:Page>
